@import './style/reset.css'; // 引入清楚默认样式
@import './style/rem.scss'; // 引入rem
@import './font/iconfont.css';  // 引入字体图标 
a {
  text-decoration: none;
}
html, body, #root, .page {
  width: 100%;
  height: 100%;
}
.icon {
  width: rem(24);
  height: rem(24);
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
.home-page{
  display: flex;
  flex-direction: column;
  main{
    flex: 1;
    overflow: hidden;
  }
  footer{
    height: 44px;
    box-shadow: 0px -2px 6px 0px rgba(119,128,135,0.1);
    display: flex;
    a{
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      img{
        width: 15.91px;
        height: 18px;
        background: #CCCCCC;
      }
      span{
        font-family: PingFangSC-Medium;
        font-size: 9px;
        color: #CCCCCC;
      }
     
    }
    .active {
      background: #ffe0e4;
      span{
        color: #ED512E;
      }
      
    }
  }
}
.first-page {
  overflow: auto;
  header {
    background: #93404a;
    position: relative;
    height: rem(187);
    margin-bottom: rem(30);
  }
  nav {
    display: flex;
    line-height: 40px;
    a {
      flex: 1;
      text-align: center;
      color: #ffffff;
    }
    .active {
      font-size: 18px;
      font-family: PingFangSC-Medium;
      position: relative;
      &::after {
        content: '';
        position: absolute;
        bottom: 3px;
        margin-left: rem(-8);
        left: 50%;
        width: rem(16);
        height: 3px;
        background: #ffffff;
        border-radius: 5px;
      }
    }
  }
  .search {
    padding: rem(5) rem(15) rem(14);
    display: flex;
    p {
      flex: 1;
      height: rem(32);
      background: rgba($color: #ffffff, $alpha: 0.2);
      border-radius: 15px;
      padding: 0 rem(15) 0 rem(46);
      position: relative;
      i {
        position: absolute;
        left: rem(15);
        top: rem(8);
        color: #ffffff;
        font-size: rem(16);
      }
      input {
        width: 100%;
        height: 100%;
        background: none;
        color: #ffffff;
        &::-webkit-input-placeholder {
          color: rgba($color: #ffffff, $alpha: 0.2);
        }
      }
    }
    span {
      width: rem(36);
      background: url(./assets/history.png) no-repeat right center;
      background-size: rem(16);
    }
  }
  .swiper {
    width: 100%;
    padding: 0 rem(15);
    .swiper-container {
      border-radius: 8px;
      overflow: hidden;
    }
    .swiper-pagination-bullet {
      opacity: 0.5;
      background: rgba($color: #ffffff, $alpha: 1);
    }
    .swiper-pagination-bullet-active {
      opacity: 1;
    }
  }
  .nav {
    display: flex;
    a {
      flex: 1;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: #333333;
    }
  }
}
.search-page {
  display: flex;
  flex-direction: column;
  header {
    height: rem(52);
    box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.1);
    padding: rem(10) rem(15);
    display: flex;
    align-items: center;
    p {
      flex: 1;
      height: 100%;
      border-radius: rem(30);
      background: #F3F4F5;
      display: flex;
      justify-content: center;
      align-items: center;
      i {
        width: rem(32);
        text-align: center;
      }
      input {
        flex: 1;
        background: none;
      }
    }
    span {
      width: rem(40);
      text-align: right;
    }
  }
  main {
    flex: 1;
    overflow: hidden;
  }
  .search-list {
    width: 100%;
    height: 100%;
    overflow: auto;
  }
  .default-list {
    width: 100%;
    height: 100%;
    overflow: auto;
  }
}